﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

using CSF.Customers.Data;
using CSF.Customers.Service;

namespace CSF.Service.Accounts.Client
{
    public class CustomerUserApplySvcClient : ClientBase<ICustomerUserApplySvc>, ICustomerUserApplySvc
    {
        #region ICustomerUserApplySvc 成员

        public List<CustomerUserApply> GetByApprovalStatus(ApprovalStatus status)
        {
            return base.Channel.GetByApprovalStatus(status);
        }

        public bool Approve(int id, int customerId, string approveComment, string approveBy)
        {
            return base.Channel.Approve(id, customerId, approveComment, approveBy);
        }

        public bool Disapprove(int id, string approveComment, string approveBy)
        {
            return base.Channel.Disapprove(id, approveComment, approveBy);
        }

        #endregion

        #region IDataIdKeyService<CustomerUserApply> 成员

        public CustomerUserApply GetOneById(int id)
        {
            return base.Channel.GetOneById(id);
        }

        public bool UpdateById(CustomerUserApply t, int id)
        {
            return base.Channel.UpdateById(t, id);
        }

        public bool DeleteOneById(int id)
        {
            return base.Channel.DeleteOneById(id);
        }

        public int DeleteById(IEnumerable<int> ids)
        {
            return base.Channel.DeleteById(ids);
        }

        #endregion

        #region IDataEntityService<CustomerUserApply> 成员

        public List<CustomerUserApply> GetAll()
        {
            return base.Channel.GetAll();
        }

        public int Insert(CustomerUserApply entity)
        {
            return base.Channel.Insert(entity);
        }

        #endregion
    }
}
